package website.haicheng.cloudauth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import website.haicheng.cloudauth.entity.RoleInfo;

import java.util.Set;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 582895699@qq.com
 * @since 2021-02-10
 */
public interface RoleInfoMapper extends BaseMapper<RoleInfo> {
    /**
     * 获取用户对应的所有角色
     *
     * @param userId 用户ID
     * @return
     */
    Set<String> listRoleNameByUserId(int userId);
}
